@import '~@/style/base.less';

.num_picker {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  .sub,
  .add {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    background-color: transparent;
    background-size: 36px auto;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    font-size: 0;
    transition: 0.3s;
    transition-property: transform;
    &:active {
      transform: scale(0.8);
    }
  }
  .sub {
    background-image: url('~@/assets/images/details_jian@2x.png');
    &:disabled {
      background-image: url('~@/assets/images/details_jian_off@2x.png');
    }
  }
  .add {
    background-image: url('~@/assets/images/home_add@2x.png');
    &:disabled {
      background-image: url('~@/assets/images/home_add_off@2x.png');
    }
  }
  .num {
    border: 0;
    width: 60px;
    font-size: 28px;
    color: #333333;
    text-align: center;
    background: transparent;
    &.hideNumber {
      opacity: 0;
    }
  }
}
